package com.TwinBlade.PicturePassword;

import android.app.Activity;
import android.content.SharedPreferences;
import android.content.SharedPreferences.Editor;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.text.Editable;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;

public class SetupPIN extends Activity
  implements View.OnClickListener
{
  EditText a;
  Button b;
  Button c;
  Button d;
  Button e;
  Button f;
  Button g;
  Button h;
  Button i;
  Button j;
  Button k;
  Button l;
  Button m;
  Button n;

  public void onClick(View paramView)
  {
    if (this.a.getText().toString().equals("0000"))
    {
      Utilities.a(this, getString(2131296452), 3, true);
      setResult(0);
      return;
    }
    if (this.a.getText().toString().equals(""))
    {
      Utilities.a(this, getString(2131296451), 3, true);
      setResult(0);
      return;
    }
    PreferenceManager.getDefaultSharedPreferences(this).edit().putString("BackupPin", this.a.getText().toString()).commit();
    setResult(-1);
    finish();
  }

  public void onCreate(Bundle paramBundle)
  {
    super.onCreate(paramBundle);
    setContentView(2130903047);
    this.b = ((Button)findViewById(2131230758));
    this.c = ((Button)findViewById(2131230756));
    this.d = ((Button)findViewById(2131230742));
    this.e = ((Button)findViewById(2131230747));
    this.f = ((Button)findViewById(2131230748));
    this.g = ((Button)findViewById(2131230749));
    this.h = ((Button)findViewById(2131230750));
    this.i = ((Button)findViewById(2131230751));
    this.j = ((Button)findViewById(2131230752));
    this.k = ((Button)findViewById(2131230753));
    this.l = ((Button)findViewById(2131230754));
    this.m = ((Button)findViewById(2131230755));
    this.n = ((Button)findViewById(2131230757));
    this.a = ((EditText)findViewById(2131230746));
    this.a.setInputType(2);
    this.a.setHint(getString(2131296406));
    this.b.setOnClickListener(this);
    this.c.setVisibility(8);
    this.d.setVisibility(8);
    this.e.setVisibility(8);
    this.f.setVisibility(8);
    this.g.setVisibility(8);
    this.h.setVisibility(8);
    this.i.setVisibility(8);
    this.j.setVisibility(8);
    this.k.setVisibility(8);
    this.l.setVisibility(8);
    this.m.setVisibility(8);
    this.n.setVisibility(8);
  }
}

/* Location:           D:\Studium\Bachelorarbeit\BA Marcus Wobig\BA\BA\Decompiler\PicturePassword APK\Programm\PicturePassword_dex2jar.jar
 * Qualified Name:     com.TwinBlade.PicturePassword.SetupPIN
 * JD-Core Version:    0.6.2
 */